FROM openjdk:8-jdk-alpine
# 设置工作目录
WORKDIR /app

COPY ./sensitive-word-api-0.0.1-SNAPSHOT.jar app.jar
COPY ./sensitive.db sensitive.db

ENV DATABASE_URL=/app/sensitive.db
# 启动 Spring Boot 应用程序
ENTRYPOINT ["java", "-jar", "app.jar"]